package com.scheduling.product.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 工艺路线实体
 *
 * @author 开发团队
 * @since 2025-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("process_route")
public class ProcessRoute implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工艺路线ID
     */
    @TableId(value = "route_id", type = IdType.ASSIGN_ID)
    private String routeId;

    /**
     * 产品ID
     */
    @TableField("product_id")
    private String productId;

    /**
     * 工艺路线名称
     */
    @TableField("route_name")
    private String routeName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
} 